<style type="text/css">
.fui-picturew .item .image .pics2 {
    position: absolute;
    top: 0.2rem;
    left: 0.2rem;
    width: auto;
    border-radius: 0.2rem;
    background-color: #f557ae;
    color: #fff;
    font-size: 0.56rem;
    text-align: center;
    line-height: 1rem;
	padding:0 0.3rem;
    opacity: 0.6;
}
.fui-content {
   background: url("/addons/jy_xiuvote/resource/bg.jpg") no-repeat #79557b;
   background-size: cover;
   height: 100%;
}
.search-input input {
    border-radius: 1rem;
}
</style>
<div class="fui-page order-create-page fui-page-current"  style="background:#fff">
	<div class="fui-content">
		<div class="c">
			<img style="width:5rem;padding-top:1rem" ng-src="{{tomedia(pagedata.basic.sublogo)||'/addons/jy_xiuvote/resource/sublogo.png'}}"/>
		</div>
		<div class="fui-cellone" style="padding:0.3rem 1rem;padding-top:0.7rem;">
				 <div class="fui-cellone-info">
					<div class="search-input" style="height:1.6rem">
						<form action="javascript:return true">
						<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_xiuvote/index/getlist/',true)" style="line-height: 1.7rem;"></i>
						<input type="search" placeholder="输入编号或者姓名" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
						</form>
					</div>
				 </div>
		</div>
		<div class="c">
			<span style="color:#fff;font-size:0.6rem" ng-init="tool.time_down(pagedata.reply.downtime)">
				距离投票结束时间还剩余:
				<span class="bold" style="color:#f557ae">
				{{pagedata.reply.downtime.day||'00'}}<span style="font-size:0.5rem">天</span>
				{{pagedata.reply.downtime.hour||'00'}}<span style="font-size:0.5rem">小时</span>
				{{pagedata.reply.downtime.minute||'00'}}<span style="font-size:0.5rem">分</span>
				{{pagedata.reply.downtime.second||'00'}}<span style="font-size:0.5rem">秒</span>
				</span>
			</span>
		</div>
		<div class="c">
			<span style="color:#fff;font-size:0.55rem">
				每个用户每天可以投票{{pagedata.reply.dairyvote||'N'}}次
			</span>
		</div>
		<div class="jy-content" style="padding-top:0.5rem">
		<div class="fui-picturew row-2" style="padding: {paddingtop}px {paddingleft}px; background: {background};">
            <div ng-repeat="item in pagedata.list" class="item" style="padding:0.2rem">
			<div style="border-radius: 0.2rem;padding: 0.2rem;font-size:0.6rem;border: 1px dashed #acefff;color:#fff">
                    <div href="javascript:;" ng-click="access_json('jy_xiuvote/o_detail//id='+item.id)" class="image" style="width:100%;height:5.5rem;background:url('{{tomedia(item.thumb) || '../core/resource/images/nopic.jpg'}}') no-repeat 50%;background-size: cover;">
						<div class="pics2">{{$index+1}}</div>
                    </div>
					<div>{{item.realname || '神秘巨星'}} <span class="r-f">编号{{item.id || '001'}}</span></div>
					<div class="c">
						<span>
						票数：<span style="font-size:1rem">{{item.votenums || '0'}}</span>
						</span>
					</div>
					<div class="c">
						<img style="width:6rem;display: inline;" ng-click="pagedata.setvote(item.id)" ng-src="{{tomedia(pagedata.basic.btnlike)||'/addons/jy_xiuvote/resource/btnlike.png'}}"/>
					</div>
			</div>
            </div>
		</div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div ng-include="sys_html('_itemfooter')"></div>
<script>
scope.loading = true;  //状态标记
scope.isnodata = true;
scope.pagedata.list =[];
scope.tool.get_list('jy_xiuvote/index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_xiuvote/index/getlist/');
}
//投票
scope.pagedata.setvote=function(id){
	scope.pagedata.select={};
	scope.pagedata.select[id]=1;
	scope.post_json('jy_xiuvote/r_detail/setvote/rid='+scope.pagedata.reply.id,scope.pagedata.select,function(res){
			if(res){
				scope.message('投票成功!','','jy_xiuvote/o_list//id='+scope.pagedata.reply.id);
			}else{
				scope.message(res);
			}
		
	});
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>
